<?php
	//----------------------- INPUT ELEMENTS -------------------//
	$ssFilter 		= $this->arrParam['ssFilter'];
	$selectLanguages = $ssFilter['lang_code'] . $this->formHidden('lang_code',$ssFilter['lang_code']);
	$name 				= $this->formText ('name', $this->Item['name'], array ('class' => 'txtlong active', 'onchange'=>"get_alias()") );
	$content 			= $this->cmsEditor('content',htmlspecialchars_decode($this->Item['content']),array('toolbar'=>'MyToolbar', 'language'=>'vi'));
	$date_star 			= $this->formText ('date_start', $this->Item['date_start'], array ('class' => 'hasDatePicker active','style'=>'min-width:200px;', 'onchange'=>"get_alias()") );
	$date_end	 		= $this->formText ('date_end', $this->Item['date_end'], array ('class' => 'hasDatePicker active','style'=>'min-width:200px;', 'onchange'=>"get_alias()") );
	$soluongnguoi 		= $this->formText ('soluongnguoi', $this->Item['soluongnguoi'], array ('class' => ' active', 'onchange'=>"get_alias()") );
	$ketqua 			= $this->cmsEditor('ketqua',htmlspecialchars_decode($this->Item['ketqua']),array('toolbar'=>'MyToolbar', 'language'=>'vi'));
	$muctieu 			= $this->cmsEditor('muctieu',htmlspecialchars_decode($this->Item['muctieu']),array('toolbar'=>'MyToolbar', 'language'=>'vi'));
	$diadiem	 		= $this->formText ('diadiem', $this->Item['diadiem'], array ('class' => 'txtlong active', 'onchange'=>"get_alias()") );
	$gia 				= $this->formText ('gia', $this->Item['gia'], array ('class' => 'auto_numberic  active', 'onchange'=>"get_alias()") );
	$op = array('1'=>'Chưa thực hiện',
				'2'=>'Đang thực hiện',
				'3'=>'Đã thực hiện',
			);
	$trangthai 	= $this->formSelect('status',$this->Item['status'],array(),$op);

	
	$arrInput = array(
				//array('label' => 'Chọn ngôn ngữ','input' => $selectLanguages),
				array('label' => 'Tên hội thảo','input' => $name, 'desc' => '<span class="red">*</span>'),
				array('label' => 'Giá vé','input' => $gia),
				array('label' => 'Ngày bắt đầu','input' => $date_star),
				array('label' => 'Ngày kết thúc','input' => $date_end),
				array('label' => 'Số lượng người','input' => $soluongnguoi),
				array('label' => 'Trạng thái','input' => $trangthai),
				array('label' => 'Địa điểm','input' => $diadiem),
				array('label' => 'Mô tả','input' => $content, 'cols' => 2,'style' => 'padding-top:0;'),
				array('label' => 'Mục tiêu','input' => $muctieu, 'cols' => 2,'style' => 'padding-top:0;'),
				array('label' => 'Kết quả','input' => $ketqua, 'cols' => 2,'style' => 'padding-top:0;'),
				
			);
	
	//--------------------- Blocks ---------------------
	
	//--------------------- Meta Options ---------------------
	$alias 				= $this->formText ( 'alias', $this->Item['alias'], array ('class' => 'textlong' ) );
	$tags		 		= $this->formTextarea('tags',$this->Item['tags'],array('rows'=>2,'class' => 'txtalong'));
	$meta_title 		= $this->formTextarea('meta_title',$this->Item['meta_title'],array('rows'=>2,'class' => 'txtalong'));
	$meta_description 	= $this->formTextarea('meta_description',$this->Item['meta_description'],array('rows'=>3,'class' => 'txtalong'));
	$meta_keywords 		= $this->formTextarea('meta_keywords',$this->Item['meta_keywords'],array('rows'=>3,'class' => 'txtalong'));
	
	$arrMeta = array(
			array('label' => 'Liên kết tĩnh','input' => $alias),
			array('label' => 'Tags','input' => $tags,'desc'=>'Mỗi Tags phân biệt nhau với dấu phẩy'),
			array('label' => 'Meta Title','input' => $meta_title),
			array('label' => 'Meta Description','input' => $meta_description),
			array('label' => 'Meta Keywords','input' => $meta_keywords),
		);
	
	//-------------------- SESSAGES ERROR ------------------
	if(count($this->messageError)>0){
		$errors = $this->formErrors($this->messageError,array('id'=>'errors'));
	}
?>

<div class="left_content">
	<?php echo $this->render($this->arrParam['controller'] . '/toolbar/left.php');?>
</div>

<div class="right_content" style="background: #fff !important;">
	<div class="block_breadcrumb">
		<?php echo $this->blkBreadcrumbs('default'); ?>
	</div>
	<div class="appContent">
	
		<?php echo $this->render('admin-hoithao/toolbar/index.php');?>
	 	<div class="clr"></div>
		<?php echo $this->render('admin-hoithao/sublink/index.php');?>
		<?php echo $errors;?>
	

	<form name="appForm" method="post" action="" enctype="multipart/form-data">
	<script>
	$(function() {
	$( "#tabs" ).tabs();
	});
	</script>
	<div id="tabs">	
	<ul>
	<li><a href="#tabs-1">Câu Lạc Bộ Tiếng Anh</a></li>
	</ul>		
	<div id="tabs-1">
	<div class="tblForm">
	
		<!-- BEGIN: CONTENT -->
		<div class="app_content goc10">
			<div class="width-60 fl">
				<fieldset class="adminform">
					<legend>Chi tiết</legend>
					<table class="adminformlist">
						<?php echo $this->partialLoop('row.php', $arrInput);?>
					</table>
				</fieldset>
			</div>
			
			<div class="clr"></div>
		</div>
		<!-- END: 	CONTENT -->
		</div></div></div>
	</form>
	</div></div>